package com.jinyi.wwdeng.ui

import android.view.View
import com.jinyi.base.base.BaseActivity
import com.jinyi.base.utils.BarUtils
import com.jinyi.wwdeng.databinding.ActLaunchBinding
import com.jinyi.wwdeng.ui.login.LoginAct

/**
 * JinYiTest
 * @Author wwdeng
 * @CreateTime: 2024/4/15 14:34
 * @Annotation：启动页
 */
class LaunchAct: BaseActivity() {

    lateinit var binding: ActLaunchBinding

    override fun getRootView(): View {
        binding = ActLaunchBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initView() {
        setTitleBarVisibility(View.GONE)
        BarUtils.setStatusBarLightMode(this, false)

    }

    override fun initListener() {
        //注册
        binding.btnSignUp.setOnClickListener {
            onIntent(LoginAct::class.java)
            finish()
        }
        //登录
        binding.btnLogin.setOnClickListener {
            binding.btnSignUp.callOnClick()
        }
    }

    override fun initData() {
    }
}